# Maintainer: Luca Weiss <luca@z3ntu.xyz>
pkgname=vkmark
pkgver=0_git20220516
pkgrel=0
_commit="d872846e2e7c47010c11227eb713d00ccfdd35c6"
pkgdesc="Vulkan benchmark"
url="https://github.com/vkmark/vkmark"
arch="all !s390x" # blocked by assimp
license="LGPL-2.1-or-later"
makedepends="
	assimp-dev
	glm-dev
	meson
	vulkan-loader-dev
	wayland-dev
	wayland-protocols
	xcb-util-wm-dev
	"
subpackages="$pkgname-doc"
source="https://github.com/vkmark/vkmark/archive/$_commit/vkmark-$_commit.tar.gz"
builddir="$srcdir/vkmark-$_commit"

build() {
	abuild-meson \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	# Skip failing "util image file reads" test
	meson test --no-rebuild -v -C output --test-args "exclude:Scenario: util image file reads"
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
02cc50b776eeabb40a5e28a371b0209009bc2fcbe86e2d2ce7624862399ed86f6cc752d0d35f8f88972cc66905bcf4d55058e3a9d8323dc472286054f5a0f481  vkmark-d872846e2e7c47010c11227eb713d00ccfdd35c6.tar.gz
"
